package com.river.boot.biz.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.river.boot.biz.model.entity.ProductSpecOption;
import com.river.boot.biz.model.form.ProductSpecOptionForm;

import java.util.List;

/**
 * 规格选项对象转换器
 *
 * @author JiangCheng Xiang
 * @since 2025-04-25 15:57
 */
@Mapper(componentModel = "spring")
public interface ProductSpecOptionConverter{

    ProductSpecOptionForm toForm(ProductSpecOption entity);

    ProductSpecOption toEntity(ProductSpecOptionForm formData);

    List<ProductSpecOptionForm> toFormList(List<ProductSpecOption> productSpecOptions);
}